<template>
  <div>
    <div v-if="Object.keys(list).length">
      <van-nav-bar left-arrow @click-left="clickRturn">
        <template #title>
          <div style="color: #fff">{{ list.community }}</div></template
        ></van-nav-bar
      >
      <van-swipe :autoplay="3000">
        <van-swipe-item v-for="(image, index) in list.houseImg" :key="index">
          <img
            v-lazy="'http://liufusong.top:8080' + image"
            height="210px"
            width="100%"
          />
        </van-swipe-item>
      </van-swipe>
    </div>
  </div>
</template>

<script>
export default {
  name: 'TopBar',
  props: {
    list: {
      type: Object,
      default: () => ({})
    }
  },
  methods: {
    clickRturn () {
      this.$router.go(-1)
    }
  }
}
</script>

<style lang="less" scoped></style>
